#include "my_stdio.h"
#include "my_string.h"
#include <stdio.h>
#include <string.h>
int main()
{
    mFILE* pf = mfopen("log.txt","w"); 
    if (pf == NULL)
    {
        perror("fopen");
    }
    char buff[30] = {"hello world\n"};
    mfwrite(buff,my_strlen(buff),pf);
    buff[strlen(buff)] = 0;
    //printf("%s",buff);
    mfclose(pf);
    return 0;
}
